package com.xja.feignclient;

import com.xja.entity.PageResult;
import com.xja.entity.Userinfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 周广瑞
 * @date 2022/4/26 15:45
 */
@Component
@FeignClient(value = "userService")
public interface UserService {
    //按照用户id 查询用户信息
    @RequestMapping("/user/finduserbyuid")
    public PageResult<Userinfo> findUserByUid(@RequestParam("uid")Integer uid);
}
